
set( TARGET images )
set( TARGET_ROOT ${CMAKE_SOURCE_DIR}/images )

message( STATUS "========== Configuring ${TARGET} ==========" )

def_vars()

# This isn't really a target...

list( APPEND PIXMAPS
   ${_SRCDIR}/gnome-mime-application-x-audacity-project.xpm
   ${_SRCDIR}/icons/16x16/${APP_NAME}16.xpm
   ${_SRCDIR}/icons/32x32/${APP_NAME}32.xpm
   ${_SRCDIR}/icons/48x48/${APP_NAME}.xpm
)

if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" AND NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
   install( FILES "${_SRCDIR}/${APP_NAME}.svg"
            DESTINATION "${_DATADIR}/icons/hicolor/scalable/apps" )
   install( DIRECTORY "${_SRCDIR}/icons/"
            DESTINATION "${_DATADIR}/icons/hicolor"
            FILES_MATCHING PATTERN "*.png" )
   install( FILES ${PIXMAPS}
            DESTINATION "${_DATADIR}/pixmaps" )
endif()

